/*
 * Copyright (C) 2016 The Android Open Source Project
 *  Created by  Ant  2016/8/23  18:19
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.ant.my.camera.activities;

import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.ant.my.camera.R;
import com.ant.my.camera.base.BaseActivity;
import com.ant.my.camera.utils.AntLog;

/**
 * Created by baichuan on 2016/8/23.
 */
public class AntIntentCamera extends BaseActivity implements View.OnClickListener {
    private ImageView image;
    private Button obt;
    private LinearLayout lil;

    @Override
    public int getContentLayout() {
        return R.layout.ac_intent_camera;
    }

    @Override
    public void initView() {
        image = (ImageView) findViewById(R.id.ac_intent_camera_img);
        obt = (Button) findViewById(R.id.ac_intent_camera_obt);
        lil = (LinearLayout) findViewById(R.id.ac_intent_layout_all);
    }

    @Override
    public void initData() {

    }

    @Override
    public void initListener() {
        obt.setOnClickListener(this);
        lil.setOnTouchListener(new View.OnTouchListener() {
            @Override
            public boolean onTouch(View view, MotionEvent motionEvent) {
                AntLog.i(TAG, "layout");
                return true;
            }
        });
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.ac_intent_camera_obt:
                AntLog.i(TAG, "obt clicked");
                break;
        }
    }
}
